package net.zkbc.shared;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class SharedVars {

	public static final String CACHE_LOGIN_ATTEMPTS = "LOGIN_ATTEMPTS";

	/**
	 * Excel导出模板路径
	 */
	@Value("${template.xlsx.export:classpath:/xlsx/export}")
	public String xlsxTemplateExportRoot;

	/**
	 * 登录失败锁定时间（秒）
	 */
	@Value("${shared.loginfail.expires:3600}")
	public int expiresForLoginfail;

	/**
	 * 登录失败几次显示图形验证码
	 */
	@Value("${shared.loginfail.max.captcha:3}")
	public int captchaForLoginfailMax;

}
